function initbodys(){
	form('applydt').readOnly=true;
	changefenlei();
}
function changefenlei(){
	if(isedit==0)return;
	$("[name^='fenlei0_']").unbind('change').change(function(){
		changeaidtssk(this);
	});

}

function eventaddsubrows(){
	changefenlei();
}


function changeaidtssk(o1){
	var nam = c.getxuandoi(o1.name);
	var sid = form('fenlei'+nam[2]+'').value;
	if(sid=='')return;
	js.ajax(geturlact('chenggoods'),{sid:sid},function(a){
		if(a){
			var o = form('aid'+nam[2]+'');
		o.length = 1;
		js.setselectdata(o,a,'id');
		}
	},'get,json');
}